package com.jz;

import org.springframework.boot.Banner;
import org.springframework.boot.ansi.AnsiOutput;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.core.SpringVersion;

@SpringBootApplication
public class SpringbootFirstApplication {

	public static void main(String[] args) {
		AnsiOutput.setEnabled(AnsiOutput.Enabled.ALWAYS);
		new SpringApplicationBuilder(SpringbootFirstApplication.class)//
				.main(SpringVersion.class) // 这个是为了可以加载 Spring 版本
				.bannerMode(Banner.Mode.CONSOLE)// 控制台打印
				.run(args);	}

}
